package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 课程评分表
 * @Date 2023-11-11 16:38:47
 * @author hjj
 */
@Data
@TableName("course_score")
@ApiModel(value="CourseScore对象", description="课程评分表")
public class CourseScore implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[课程id]不能为空")
    @ApiModelProperty("课程id")
    private Integer courseId;

    @NotNull(message="[评论者id]不能为空")
    @ApiModelProperty("评论者id")
    private Integer studentId;

    @NotNull(message="[分数]不能为空")
    @ApiModelProperty("分数")
    private Integer score;

    @ApiModelProperty("创建时间")
    private String createTime;

    public CourseScore() {
    }

    public CourseScore(Integer courseId, Integer studentId, Integer score, String createTime) {
        this.courseId = courseId;
        this.studentId = studentId;
        this.score = score;
        this.createTime = createTime;
    }
}
